//显示翻页样式
function showPager(d){
	var current = $("#pageNumber").val() * 1;
	if(current > 0){
		$("#firstPage").attr("href","javascript:toPage(0);").parent().removeClass("disabled");
		$("#prevPage").attr("href","javascript:toPage("+(current-1)+");").parent().removeClass("disabled");
	}else{
		$("#firstPage").attr("href","javascript:void(0);").parent().addClass("disabled");
		$("#prevPage").attr("href","javascript:void(0);").parent().addClass("disabled");
	}
	$("#currentPage").html(current+1);
	
	var total = d.totalPages;
	
	if(total > (current + 1)){
		$("#nextPage").attr("href","javascript:toPage("+(current+1)+");").parent().removeClass("disabled");
		$("#lastPage").attr("href","javascript:toPage("+(total-1)+");").parent().removeClass("disabled");
	}else{
		$("#nextPage").attr("href","javascript:void(0);").parent().addClass("disabled");
		$("#lastPage").attr("href","javascript:void(0);").parent().addClass("disabled");
	}
}

//跳转到某一页
function toPage(n){
	$("#pageNumber").val(n);
	$("#search_btn").click();
}